package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:17
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceScmLogBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceScmLog workspaceScmLog;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceScmLog);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Id);
		
																																																		
				
																
				
																
		mappedDaoFields.put("parentId",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.ParentId);
		
																																														
				
																
				
																				
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.WorkspaceId);
		
																																										
				
																
				
																								
		mappedDaoFields.put("workspaceScmConfigId",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.WorkspaceScmConfigId);
		
																																						
				
																
				
																												
		mappedDaoFields.put("revision",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Revision);
		
																																		
				
																
				
																																
		mappedDaoFields.put("author",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Author);
		
																														
				
																
				
																																				
		mappedDaoFields.put("revisionTime",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.RevisionTime);
		
																										
				
																
				
																																								
		mappedDaoFields.put("comment",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Comment);
		
																						
				
																
				
																																												
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Status);
		
																		
				
																
				
																																																
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.Remarks);
		
														
				
																
				
																																																						
				
						
		mappedDaoFields.put("workspaceName",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.WorkspaceName);
												
				
																																																				
		mappedDaoFields.put("totalLines",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.TotalLines);
		
										
				
																
				
																																																								
		mappedDaoFields.put("totalSize",com.ourteam.workspace.dao.IWorkspaceScmLogDAO.TotalSize);
		
						
				
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceScmLogBean() {
		super();
	    		
		this.workspaceScmLog = new com.ourteam.workspace.dao.WorkspaceScmLog();
                
	}
	
		
	public WorkspaceScmLogBean(com.ourteam.workspace.dao.WorkspaceScmLog workspaceScmLog) {
		super();
	
		this.workspaceScmLog = workspaceScmLog;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceScmLog convertToWorkspaceScmLog(){
		return this.workspaceScmLog;
	}
	
	public com.ourteam.workspace.dao.WorkspaceScmLog convertTo(){
		return this.workspaceScmLog;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceScmLog.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceScmLog.setId(id);
	}
		
																									
			
									
		
		
					
			
		
	/**
	 * Get parentId
	 * 
	 * @return long
	 */
	public long getParentId(){
		return (long) this.workspaceScmLog.getParentId();
	}
	
	/**
	 * Set parentId
	 * 
	 * @parameter long
	 */
	public void setParentId(long parentId){
		
		this.workspaceScmLog.setParentId(parentId);
	}
		
																							
			
									
		
		
							
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		return (long) this.workspaceScmLog.getWorkspaceId();
	}
	
	/**
	 * Set workspaceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceId(long workspaceId){
		
		this.workspaceScmLog.setWorkspaceId(workspaceId);
	}
		
																					
			
									
		
		
									
			
		
	/**
	 * Get workspaceScmConfigId
	 * 
	 * @return long
	 */
	public long getWorkspaceScmConfigId(){
		return (long) this.workspaceScmLog.getWorkspaceScmConfigId();
	}
	
	/**
	 * Set workspaceScmConfigId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceScmConfigId(long workspaceScmConfigId){
		
		this.workspaceScmLog.setWorkspaceScmConfigId(workspaceScmConfigId);
	}
		
																			
			
									
		
		
											
			
		
	/**
	 * Get revision
	 * 
	 * @return String
	 */
	public String getRevision(){
		return (String) this.workspaceScmLog.getRevision();
	}
	
	/**
	 * Set revision
	 * 
	 * @parameter String
	 */
	public void setRevision(String revision){
		
		this.workspaceScmLog.setRevision(revision);
	}
		
																	
			
									
		
		
													
			
		
	/**
	 * Get author
	 * 
	 * @return String
	 */
	public String getAuthor(){
		return (String) this.workspaceScmLog.getAuthor();
	}
	
	/**
	 * Set author
	 * 
	 * @parameter String
	 */
	public void setAuthor(String author){
		
		this.workspaceScmLog.setAuthor(author);
	}
		
															
			
									
		
		
															
			
		
	/**
	 * Get revisionTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getRevisionTime(){
		return (java.util.Date) this.workspaceScmLog.getRevisionTime();
	}
	
	/**
	 * Set revisionTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setRevisionTime(java.util.Date revisionTime){
		
		this.workspaceScmLog.setRevisionTime(revisionTime);
	}
		
													
			
									
		
		
																	
			
		
	/**
	 * Get comment
	 * 
	 * @return String
	 */
	public String getComment(){
		return (String) this.workspaceScmLog.getComment();
	}
	
	/**
	 * Set comment
	 * 
	 * @parameter String
	 */
	public void setComment(String comment){
		
		this.workspaceScmLog.setComment(comment);
	}
		
											
			
									
		
		
																			
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceScmLog.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceScmLog.setStatus(status);
	}
		
									
			
									
		
		
																					
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceScmLog.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceScmLog.setRemarks(remarks);
	}
		
							
			
									
		
		
																										
			
			
			
		
	/**
	 * Get workspaceName
	 * 
	 * @return String
	 */
	public String getWorkspaceName(){
		
		return (String) this.workspaceScmLog.getWorkspaceName();
			
	}
	
							
		
		
																							
			
		
	/**
	 * Get totalLines
	 * 
	 * @return long
	 */
	public long getTotalLines(){
		return (long) this.workspaceScmLog.getTotalLines();
	}
	
	/**
	 * Set totalLines
	 * 
	 * @parameter long
	 */
	public void setTotalLines(long totalLines){
		
		this.workspaceScmLog.setTotalLines(totalLines);
	}
		
					
			
									
		
		
																									
			
		
	/**
	 * Get totalSize
	 * 
	 * @return long
	 */
	public long getTotalSize(){
		return (long) this.workspaceScmLog.getTotalSize();
	}
	
	/**
	 * Set totalSize
	 * 
	 * @parameter long
	 */
	public void setTotalSize(long totalSize){
		
		this.workspaceScmLog.setTotalSize(totalSize);
	}
		
			
			
									
		
			
			
			
			
			
			
			
			
			
			
			
			
			
					
	private com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean[] changePathLogs  = new com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean[]{};
	
	/**
	 * Get changePathLogs
	 * 
	 * @return com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean
	 */
	public com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean[] getChangePathLogs(){
			
	    return this.changePathLogs;
			
	}
	
	/**
	 * Set changePathLogs
	 * 
	 * @parameter com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean
	 */
	public void setChangePathLogs(com.ourteam.workspace.domain.WorkspaceScmChangePathLogBean[] changePathLogs){
			
		this.changePathLogs = changePathLogs;
		
	}
	
		
					
	private com.ourteam.workspace.domain.WorkspaceScmLogBean[] childLogBeans  = new com.ourteam.workspace.domain.WorkspaceScmLogBean[]{};
	
	/**
	 * Get childLogBeans
	 * 
	 * @return com.ourteam.workspace.domain.WorkspaceScmLogBean
	 */
	public com.ourteam.workspace.domain.WorkspaceScmLogBean[] getChildLogBeans(){
			
	    return this.childLogBeans;
			
	}
	
	/**
	 * Set childLogBeans
	 * 
	 * @parameter com.ourteam.workspace.domain.WorkspaceScmLogBean
	 */
	public void setChildLogBeans(com.ourteam.workspace.domain.WorkspaceScmLogBean[] childLogBeans){
			
		this.childLogBeans = childLogBeans;
		
	}
	
		
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceScmLogBean) == false) {
            return false;
        } // end if

        WorkspaceScmLogBean other = (WorkspaceScmLogBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceScmLog tempWorkspaceScmLog = other.convertToWorkspaceScmLog();
        
        if(tempWorkspaceScmLog == null || this.workspaceScmLog == null){
        	isEqual = false;
        }
        else if(tempWorkspaceScmLog == this.workspaceScmLog || tempWorkspaceScmLog.equals(this.workspaceScmLog) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceScmLogBean[] toArray(com.ourteam.workspace.dao.WorkspaceScmLog[] aWorkspaceScmLogs){
		
		return toArray(aWorkspaceScmLogs,null);
	}
	
	public static WorkspaceScmLogBean[] toArray(com.ourteam.workspace.dao.WorkspaceScmLog[] aWorkspaceScmLogs , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceScmLogs)){
		 	return new WorkspaceScmLogBean[0];
		 }
		 
		 int length = aWorkspaceScmLogs.length;
		 
		 WorkspaceScmLogBean[] beans = new WorkspaceScmLogBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceScmLogBean(aWorkspaceScmLogs[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceScmLogs[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}